home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / tokyo / east.dir / 00014_Script_movie < prev    next >
Text File  |  1999-04-26  |  2KB  |  71 lines

  1. global sndList, sndCount, chanNum, maxSnd, Nsnd, Esnd, Ssnd
  2. global Ccounter, CsprtList, Ctime, mousePlace
  3.  
  4. on startMovie
  5. --  clearglobals
  6.   preLoadcast
  7.   initsnd
  8.   puppetsprite 39,1
  9.   puppetsprite 3,1
  10.   set CsprtList=[]
  11.   set cTime=0
  12.   
  13.   set the volume of sound 1 to 100
  14.   
  15.   
  16. end
  17.  
  18.  
  19. on initSnd
  20.   set Esnd=["sounds:street3.aif", "sounds:street2.aif", "sounds:arcade.aif","sounds:girl.aif", "sounds:street1.aif", "sounds:cbl.aif", "sounds:texture3.aif", "sounds:texture4.aif"]
  21.   set maxSnd=400
  22.   set sndList=""
  23.   set sndCount = 1
  24.   set chanNum = 2
  25.   repeat with i = 1 to maxSnd
  26.     put "-" into line i of sndlist
  27.   end repeat
  28. end
  29.  
  30. on echo
  31.   set sndCount = sndCount +1
  32.   if sndCount > maxSnd then set sndCount = 1
  33.   if line sndCount of sndlist <> "-" then
  34.     if not(soundbusy(chanNum)) then sound playfile, chanNum, the pathname & line sndCount of sndlist
  35.     set chanNum = chanNum+1
  36.     if chanNum = 9 then set chanNum = 2
  37.   end if 
  38. end
  39.  
  40.  
  41.  
  42.  
  43. on animate chan, firstpos, lastpos, delaytime
  44.   if the membernum of sprite chan < firstpos or the membernum of sprite chan > lastpos then set the membernum of sprite chan = firstpos
  45.   set the castNum of sprite chan = the castNum of sprite chan + 1
  46.   if the castNum of sprite chan > lastpos then set the castNum of sprite chan to firstpos
  47.   set t = delaytime+the timer
  48.   repeat while t > the timer
  49.     if the mousedown then exit repeat
  50.   end repeat
  51. end
  52.  
  53.  
  54. on rightArrow
  55.   if rollover(141) then 
  56.     set the blend of sprite 141 to 50 
  57.   else
  58.     set the blend of sprite 141 to 100
  59.   end if
  60. end
  61.  
  62.  
  63. on exitMovie
  64.   if rollover(143) then
  65.     set the blend of sprite 143 to 50
  66.   else
  67.     set the blend of sprite 143 to 100
  68.   end if
  69. end
  70.  
  71.